package kr.hkit.powerjava.chapter22.work;

import java.util.ArrayList;

public class DepartmentDAO implements DaoInterface<Department> {
	private ArrayList<Department> arList;
	
	public DepartmentDAO(ArrayList<Department> arList) {
		this.arList = arList;
	}

	@Override
	public void additem(Department item) {
		arList.add(item);
	}

	@Override
	public Department searchStd(Department item) {
		if (arList.contains(item)){
			return arList.get(arList.indexOf(item));
		}else{
			return null;
		}
	}

	@Override
	public void updateItem(Department item) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delitem(Department item) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void prnList() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void prnHeader() {
		// TODO Auto-generated method stub
		
	}

	
}
